import request from '@/utils/request'

// 查询退款商品规格列表
export function listRefundGoodsSpec(query) {
  return request({
    url: '/order/refundGoodsSpec/list',
    method: 'get',
    params: query
  })
}

// 查询退款商品规格详细
export function getRefundGoodsSpec(refundGoodsSpecId) {
  return request({
    url: '/order/refundGoodsSpec/' + refundGoodsSpecId,
    method: 'get'
  })
}

// 新增退款商品规格
export function addRefundGoodsSpec(data) {
  return request({
    url: '/order/refundGoodsSpec',
    method: 'post',
    data: data
  })
}

// 修改退款商品规格
export function updateRefundGoodsSpec(data) {
  return request({
    url: '/order/refundGoodsSpec',
    method: 'put',
    data: data
  })
}

// 删除退款商品规格
export function delRefundGoodsSpec(refundGoodsSpecId) {
  return request({
    url: '/order/refundGoodsSpec/' + refundGoodsSpecId,
    method: 'delete'
  })
}
